/**
 *
 * @author Tritonio
 */

package jrpc;

import java.io.Serializable;

class MouseOrKeybData implements Serializable {
    int type; //MOUSEMOVE,MOUSEDOWN,MOUSEUP,KEYDOWN,KEYUP
    double newX, newY;
    int key, button;
    
    MouseOrKeybData(int type,double x, double y, int button) {
        assert(type == 1 || type == 2);
        newX=x;
        newY=y;
        this.button=button;
        this.type=type;
    }

    MouseOrKeybData(int type,double x, double y) {
        assert(type == 0);
        newX=x;
        newY=y;
        this.type=type;
    }

    MouseOrKeybData(int type,int key) {
        assert(type==3 || type==4);
        this.key=key;
        this.type=type;
    }

}
